/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package za.co.pas.business.message;

/**
 *
 * @author alabuschagne
 */
public class StatusMessageObject
{
    public static final int SMO_INFO = 0;
    public static final int SMO_WARN = 1;
    public static final int SMO_ERROR = 2;
    public static final int SMO_CLEAR= 3;
    public static final int SMO_TYPE_GEN = 0;
    public static final int SMO_TYPE_READ = 1;
    public static final int SMO_TYPE_WRITE = 2;
    public static final int SMO_TYPE_DB = 3;
    public static final int SMO_TYPE_BUSY_START = 4;
    public static final int SMO_TYPE_BUSY_END = 5;
    private int status;
    private String message;
    private int type = SMO_TYPE_GEN;

    private StatusMessageObject(){}

    public StatusMessageObject(int status, String message, int type)
    {
        this.status = status;
        this.message = message;
        this.type = type;
    }
    /**
     * @return the status
     */
    public int getStatus()
    {
        return status;
    }

    /**
     * @param status the status to set
     */
    public void setStatus(int status)
    {
        this.status = status;
    }

    /**
     * @return the message
     */
    public String getMessage()
    {
        return message;
    }

    /**
     * @param message the message to set
     */
    public void setMessage(String message)
    {
        this.message = message;
    }

    /**
     * @return the type
     */
    public int getType()
    {
        return type;
    }

    /**
     * @param type the type to set
     */
    public void setType(int type)
    {
        this.type = type;
    }
}
